package com.hecun.crm.mapper;

import com.hecun.crm.pojo.Customer;
import com.hecun.crm.pojo.QueryVo;

import java.util.List;

public interface CustomerMapper {

    //根据QueryVo查询分页数据
    List<Customer> queryCustomerByQueryVo(QueryVo queryVo);

    //根据QueryVo查询数据总条数
    int queryCountByQueryVo(QueryVo queryVo);

    //根据id查询Customer,用来修改时回显数据
    Customer queryCustomerById(Long id);

    //根据id编辑用户,传入的参数是Customer
    void updateCustomerById(Customer customer);

    //删除用户
    void deleteCustomerById(Long id);
}
